<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>按键码</title>
    <link rel="stylesheet" href="keycode.css">
    <script src="https://unpkg.com/vue"></script>
</head>
<body>

    <div id="vue-app">
        <h1>键盘 Events</h1>
        <label>姓名</label>
        <input type="text" v-on:keyup.enter="logName">
        <label>年龄</label>
        <input type="text" v-on:keyup.alt.enter="logAge">

    </div>
<script src="keycode.js"></script>
</body>
</html>